package com.maya.medicalwastes.util;

import okhttp3.HttpUrl;

/**
 * @description 网络数据访问url
 * @user gzl
 * @date 2017/4/20
 * @time 15:26
 */

public class ApiConfigConstant {

    // public final static boolean DEBUG_MODE = BuildConfig.HTTP_ONLINE;
    public static boolean DEBUG_MODE = true;
    public static boolean WEB_PAGE_IS_SERVER = true;
    public static String HTTP = "http://";
    public static String SZL_HOSPITAL = HTTP + "60.190.224.130:11000";
    public static String SZL_HOSPITAL_WEB = HTTP + "60.190.224.130:12000";
    public static String PING_TAI_HOSPITAL = HTTP + "app.curetech.cc:80";

    //public final static String BASE_IP = "uehu.curetech.cc";
    //public final static String BASE_PORT = "81";

    /**
     * 平台版
     */
    public static String BASE_IP = "app.curetech.cc";
    public static String BASE_PORT = "80";

//    public static String BASE_IP = "192.168.6.179";
//    public static String BASE_PORT = "50000";

    /**
     * 省肿瘤
     * 手机端60.190.224.130:11000
     * PC端60.190.224.130:12000
     */
//    public static String BASE_IP = "60.190.224.130";
//    public static String BASE_PORT = "11000";


//================================================================================================//

    //明铭
/*    public static String DEBUG_IP = "192.168.6.119";
    public static String DEBUG_PORT = "60000";*/

    //179
    /*public static String DEBUG_IP = "192.168.1.179";
    public static String DEBUG_PORT = "50000";*/

    //朱琳
/*    public static String DEBUG_IP = "192.168.6.148";
    public static String DEBUG_PORT = "50000";*/

//    //顾永跃
//    public static String DEBUG_IP = "192.168.6.190";
//    public static String DEBUG_PORT = "50000";
    //游琴
    public static String DEBUG_IP = "192.168.1.139";
    public static String DEBUG_PORT = "60030";
    public static String BASE_URL = HTTP + BASE_IP + ":" + BASE_PORT;
    public static String DEBUG_URL = HTTP + DEBUG_IP + ":" + DEBUG_PORT;
    public static String URL = DEBUG_MODE ? DEBUG_URL : BASE_URL;
    public static String IMAGE_URL = ApiConfigConstant.BASE_URL.equals(ApiConfigConstant.SZL_HOSPITAL) ? ApiConfigConstant.SZL_HOSPITAL_WEB : "http://web.curetech.cc";
    public static String URL_HOST = HttpUrl.parse(URL).host();
    public static String URL_WEB = WEB_PAGE_IS_SERVER ? URL + "/#/" : "file:///android_asset/dist/index.html#";
}
